package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.LambdaArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Where extends AbstractMethod {
    private static final String name = "where";
    /**
    Filter the current stream using the given expression. This expression is a Kapacitor expression. Kapacitor expressions are a superset of InfluxQL WHERE expressions. See the expression docs for more information.
    **/
    /**
    使用给定的表达式过滤当前流。此表达式是Kapacitor表达式。 Kapacitor表达式是InfluxQL WHERE表达式的超集。有关更多信息，请参见表达式文档。
    **/
    public Where(String lambda) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new LambdaArg(lambda));


    }
}
